home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
089a.dms
/
089a.adf
/
EXAMPLE_PROGRAMS
/
Example30.AMOS
/
Example30.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1992-02-26
|
655b
|
29 lines
'=================
'Example 30
'=================
'
'Storing an executable program in an Amos bank
'and using it.
'
'This program has PPMore stored in bank 10
'We will copy the program from bank 10 to the Ram disk
' and then run it by giving it a text file to load.
'The file is Help.txt found on this disk.
'=====================================================
'
'Copy PPMore from bank 10 to Ram:
Bsave "ram:ppmore",Start(10) To Start(10)+Length(10)
'
'Show Workbench screen
Amos To Back
'
'execute PPMore
COMMAND$="ram:ppmore df0:help.txt"
Dreg(1)=Varptr(COMMAND$)
Dreg(2)=0
Dreg(3)=0
XEXECUTE=Doscall(-222)
'
'Back to Amos
Amos To Front
Stop